package com.fitness.fitness.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fitness.fitness.modal.datavisual.entity.GenderVisual;
import org.apache.ibatis.annotations.Insert;

import java.util.List;

public interface GenderVisualMapper extends BaseMapper<GenderVisual> {

    @Insert("<script>replace into ads_member_gender(gender,num) values " +
            "<foreach collection='genderVisuals' item='visual' separator=',' >" +
            " ( #{visual.gender},#{visual.num} )" +
            "</foreach>" +
            "</script>")
    void saveOrUpdateGenderVisualBatch(List<GenderVisual> genderVisuals);

}
